package com.byb.server.service.dto;


import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;

/**
 * A DTO for the Strichen entity.
 */
public class StrichenDTO implements Serializable {

    private Long id;

    private String strichenName;

    private Long productId;

    private String productProductName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getStrichenName() {
        return strichenName;
    }

    public void setStrichenName(String strichenName) {
        this.strichenName = strichenName;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductProductName() {
        return productProductName;
    }

    public void setProductProductName(String productProductName) {
        this.productProductName = productProductName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        StrichenDTO strichenDTO = (StrichenDTO) o;
        if(strichenDTO.getId() == null || getId() == null) {
            return false;
        }
        return Objects.equals(getId(), strichenDTO.getId());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getId());
    }

    @Override
    public String toString() {
        return "StrichenDTO{" +
            "id=" + getId() +
            ", strichenName='" + getStrichenName() + "'" +
            "}";
    }
}
